package com.test.sort;

import com.google.common.base.Joiner;

public class SortMain {

    public static void main(String[] args) {
        Integer[] arr = new Integer[]{3, 8, 1, 9, 10, 6, 11, 32, 16, 7, 2, 4, 5};
        new SelectSortHandler().handle(arr);
        System.out.println(Joiner.on(",").join(arr));

        arr = new Integer[]{3, 8, 1, 9, 10, 6, 11, 32, 16, 7, 2, 4, 5};
        new BubbleSortHandler().handle(arr);
        System.out.println(Joiner.on(",").join(arr));

        arr = new Integer[]{3, 8, 1, 9, 10, 6, 11, 32, 16, 7, 2, 4, 5};
        new InsertSortHandler().handle(arr);
        System.out.println(Joiner.on(",").join(arr));

    }
}
